import 'package:spring_fairy/api/point_image_api.dart';
import 'package:spring_fairy/api/user_api.dart';
import 'package:spring_fairy/model/mood_point_image.dart';
import 'package:spring_fairy/model/user.dart';

void main() async {
  UserAPI userAPI = UserAPI();
  User? user = await userAPI.login('admin', '1234567');
  print(user);

  PointImageAPI pointImageAPI = PointImageAPI();
  MoodPointImage moodPointImage = MoodPointImage();
  moodPointImage.pointId = 8;
  moodPointImage.imageUrl = "http://localhost:8080/api/uploads/2f52e64e-d97d-4dc2-915c-93aede08a391.jpg";
  // pointImageAPI.addMoodPintImage(moodPointImage).then(print);

  pointImageAPI.getAllPointImage(8).then(print);
}